#pragma once

#include <windows.h>
#include <map>
#include <string>
#include <fstream>
#include "Light.h"
#include <FileHolder.h>

#include "IResources.h"
#include "IAutoLoadResources.h"

class LightsManager : public IResources<Light*>, public IAutoLoadResources
{
private:
	std::map<std::string, Light*> lights;

	void ReadFile(const char *filename);

public:
	LightsManager(void);
	~LightsManager(void);

	void Load(const char *path, const char *ext);
	void Add(const char *name, Light *camera);
	Light * Get(const char *name);

	int GetCount();
	void Get(int i, char *name, Light *&res);
};
